package com.zhuannimei.utility;

import java.util.Set;

import android.os.SystemClock;
import cn.jpush.android.api.JPushInterface;
import cn.jpush.android.api.TagAliasCallback;

import com.zhuannimei.GlobalApplication;

public class JpushUtil {
	public static void regJush(){
		JPushInterface.setAliasAndTags(GlobalApplication.mContext, UserData.getInstance().getUserUserId(), null, new TagAliasCallback(
				) {
			@Override
			public void gotResult(int arg0, String arg1, Set<String> arg2) {
				if(arg0!=0){
					SystemClock.sleep(200);
					JpushUtil.regJush();
				}
			}
		});
	}
}
